<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <script type="text/javascript" th:src="@{https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js}"></script>
    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>
    <link th:href="@{/css/default.css}" rel="stylesheet"/>
    <link rel="icon" th:href="@{/images/favicon.ico}" type="image/x-icon"/>
    <meta charset="UTF-8"/>
    <title>问答系统</title>
</head>

<body>

<div class="contentDiv">

    <h2 style="text-align:center"> 问答系统 </h2>

    <hr/>
    <hr/>


    <table class="table table-hover table-condensed">

        <thead>
        <tr>
            <th>问题</th>
            <th>答案</th>
            <th>得分</th>
        </tr>
        </thead>

        <tbody>
        <tr th:each="answer : ${answerList}">
            <td th:text="${answer.question}"></td>
            <td th:text="${answer.answer}"></td>
            <td th:text="${answer.score}"></td>
        </tr>
        </tbody>
    </table>

</div>

</body>
</html>